import { ref, computed, reactive, type Ref } from 'vue'
import { defineStore } from 'pinia'
import type { Tree } from "@/myType"

export const useCounterStore = defineStore('counter', () => {
  const count = ref(0)
  const doubleCount = computed(() => count.value * 2)
  let checkedkeys: Ref<Tree[]> = ref([])
  function increment() {
    count.value++
  }

  return { count, doubleCount, increment, checkedkeys }
})
